<?php require_once('../../core/import.php');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <script type="text/javascript" src="../../scripts/import.js"></script>
    <script type="text/javascript" src="../../scripts/components/kindeditor/import.kindeditor.js"></script>
    <script type="text/javascript" src="scripts/edit.js"></script>
<!--二级联动开始-->
</head>

<body>
    <form id="Form1" name="Form1" method="post" enctype="multipart/form-data" action="edit.action.php" class="Form">
       <?php
	 	#赋值检测
  		if(!is_numeric($ID=Functions::UrlArgs('id'))) exit('信息ID不正确');
    
 	 	#获取数据
	 	$Rows=DB::GetRowByID('news',$ID);
	 ?> 
        <fieldset>
            <legend>基本信息</legend>
            <table width="100%" cellpadding="1" cellspacing="0">
            <tr>
                <td width="71" height="25" align="left">标题：</td>
                <td width="1010" colspan="2">
                   <?php echo $Rows['Title'];?>
                </td>
            </tr>
             <tr>
                <td width="71" height="25" align="left">作者：</td>
                <td width="1010" colspan="2">
                    <?php echo $Rows['Auhtor'];?>
                </td>
            </tr>
             <tr>
                <td width="71" height="25" align="left">来源：</td>
                <td width="1010" colspan="2">
                   <?php echo $Rows['Origin'];?>
                </td>
            </tr>
             <tr>
                <td width="71" height="25" align="left">关键词：</td>
                <td width="1010" colspan="2">
                   <?php echo $Rows['Keywords'];?>
                </td>
            </tr>
            <tr>
                <td height="25" align="left" valign="top">内容：</td>
                <td colspan="2">
               	 <?php echo $Rows['Content'];?>
                </td>
            </tr>
           <tr>
                <td height="25" align="left" valign="middle">缩略图：</td>
                <td colspan="2"><input type="File" id="Thumbnail" name="Thumbnail" class="Textbox" /><a href="<?php echo Config::PATH_RELATIVE_ATTACHMENT_TEMP.'/'.$Rows['Thumbnail']; ?>" target="_blank">点击查看</a></td>
            </tr>
               </table>
        </fieldset>
	  <fieldset>
            <legend>其它选项</legend>
            <table width="100%" cellpadding="1" cellspacing="0">
            <tr>
                <td width="71" height="25" align="left" valign="middle">类别：</td>
                <td width="1010" colspan="2">
            <?php 
		if($Rows['ClassID'])
			{
				$Date_Class=DB::GetRowByID('news_class','Identifying:'.$Rows['ClassID']);
				echo $Date_Class['Name'];	
			}
		if($Rows['SubclassID']!=null)
			{
				$Date_SubClass=DB::GetRowByID('news_class','Identifying:'.$Rows['SubclassID']);
				echo '-'.$Date_SubClass['Name'];	
			}
		 ?>
                </td>
            </tr>
            <tr>
            	<td height="25" align="left" valign="middle">置顶：</td>
            	<td colspan="2"> 
                  	<?php if($Rows['M_IsTop']==1){ echo '是' ;}?>
	  			<?php if($Rows['M_IsTop']==0){ echo '否' ;}?>
                  </td>
            </tr>
           <tr>
             	<td height="25" align="left" valign="middle">头条：</td>
            	<td colspan="2"> 
                  	<?php if($Rows['M_IsHeadline']==1){ echo '是' ;}?>
	  			<?php if($Rows['M_IsHeadline']==0){ echo '否' ;}?> 
                  </td>
            </tr>
            <tr>
            	<td height="25" align="left" valign="middle">推荐：</td>
            	<td colspan="2"> 
                  	<?php if($Rows['M_IsRecommend']==1){ echo '是' ;}?>
	  			<?php if($Rows['M_IsRecommend']==0){ echo '否' ;}?>
                  </td>
            </tr>
               </table>
        </fieldset>
       <input  type="button" onclick="history.go(-1);" value="返回" class="button" />
    </form>
</body>
</html>